<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th>账号ID</th>
            <th>平台</th>
            <th>账号</th>
            <th>店铺名</th>
            <th>站点</th>
            <th>税号</th>
            <th>发货天数</th>
            <th>排序</th>
            <th>状态</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $list as $item}
            <tr>
                <td>{$item.account_id}</td>
                <td class="text-left">{$item.platform.name}</td>
                <td class="text-left copy-text">{$item.username}</td>
                <td class="text-left copy-text">{$item.store_name}</td>
                <td class="text-left">{$item.site}</td>
                <td class="text-left copy-text">{$item.tax_num}</td>
                <td>{$item.send_day ? $item.send_day . '天' : '当天'}</td>
                <td>{$item.sort}</td>
                <td>
                    <a href="{:url('lock',['account_id'=>$item['account_id'],'lock'=>abs(1-$item['is_active'])])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$item.is_active?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td class="text-left">{$item.remark}</td>
                <td>
                    <a class="layui-btn layui-btn-xs layui-btn-normal ajax-form" href="{:url('add', ['account_id'=>$item['account_id']])}" title="账号信息">编辑</a>
                    <a class="layui-btn layui-btn-xs ajax-form" href="{:url('system/settings/add', ['account_id'=>$item['account_id']])}" title="账号配置">配置</a>
                    <a class="layui-btn layui-btn-xs layui-btn-danger ajax-get" title="删除" confirm="1" href="{:url('delete', ['account_id'=>$item['account_id']])}">删除</a>
                </td>
            </tr>
        {/foreach}
        {empty name="list"}
        <tr>
            <td colspan="11">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>